// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import echarts from 'echarts'
// import Resource from 'vue-resource'
import FastClick from 'fastclick'
import api from './api/index.js'
import VueScroller from 'vue-scroller'
Vue.use(VueScroller)
if ('addEventListener' in document) {
  document.addEventListener('DOMContentLoaded', function () {
    FastClick.attach(document.body)
  }, false)
}

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
// Vue.use(Resource)
// Vue.http.options.emulateJSON = true
Vue.prototype.$api = api
/* if (process.env.NODE_ENV === 'production') {
  Vue.prototype.URL = 'http://report.huwochuxing.com:9090'
} else {
  Vue.prototype.URL = 'http://120.78.10.95:9090'
}
console.log(process.env.NODE_ENV) */
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
